package com.company.programone.modeone.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author leiming5
 * @description TestController
 * @date 2024/11/28-9:45
 * Copyright 2024 Lenovo DIBG West Region Service Delivery
 */
@RestController
@RequestMapping("test")
public class TestController {

    @GetMapping("/str")
    public String getString(String parameter){
        if (null==parameter||"".equals(parameter)){
            System.out.println("empty parameter");
            return "empty parameter";
        }
        System.out.println(parameter);
        return "good parameter";
    }
}
